module Piston
  module PluginManager
    class PluginData
      attr_accessor :id
      attr_accessor :name
      attr_accessor :author
      attr_accessor :version

      def initialize(plugin_data)
        plugin_data.each_pair do |attr, value|
          instance_variable_set "@#{attr}", value
        end
      end
    end
  end
end